package cn.edu.scau.cmi.huangxiaodong.adapter;

import java.util.List;

public class SortUtil {
	public List sortInt(List<Integer> intList) {
		       if(intList.isEmpty()) {
		    	   return null;
		       }
		       int count=intList.size();
		       for(int i=0;i<count-1;i++) {
		    	for(int  j=i+1;j<count;j++) {
		    	    	if(intList.get(i)>intList.get(j)) {
		    	    		  int temp=intList.get(i);
		    	    		  intList.set(i,intList.get(j));
		    	    		  intList.set(j, temp);    	    		  
		    	    	  }
		    	      }	    	   
		       }
	         return intList;
	}
}
